package com.zhoujing.cinema.dao;

import com.zhoujing.cinema.entity.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CinemaDao {
    public City selectIdByName(String name);
    public List<City> selectAllCity();
    public List<CinemaBrand> selectCinemaBrand(Integer id);
    public List<CinemaArea> selectCinemaArea(Integer id);
    public List<CinemaType> selectCinemaType(Integer id);
    public List<Cinema> selectCinema(Integer id);
    public List<Cinema> selectCinemaWithQuery(CinemaDto cinemaDto);
    public Cinema selectCinemaById(Integer id);
    public List<Session> selectTodaySession(Session session);
    public Session selectSessionById(Integer id);
    public void updateSeat(Session session);
    public void insertOrder(Order order);
    public List<Order1> selectOrderByUserId(Integer userId);
    public List<Cinema> selectCinemas();
    public List<Cinema> searchCinemas(@Param("name")String name);
    public void insertCinema(Cinema cinema);
    public void updateCinema(Cinema cinema);
    public void updateCinema1(Cinema cinema);
    public Cinema selectCinemaById1(Integer id);
    public void insertSession(Session session);
    public void updateSession(Session session);
    public Session selectSessionByIds(Integer id);
}
